<template>
  <router-view></router-view>
  <TarBar v-if="isShow"></TarBar>
</template>

<script setup>
import TarBar from './components/TarBar.vue';
import {ref,watch} from "vue"
import { useRoute } from "vue-router"
let isShow=ref(true)
let route=useRoute()
watch(route,newroute=>{
    // console.log(newroute);
    isShow.value=newroute.meta.isShowNav   
},{
    immediate:true
})
</script>

<style scoped></style>
